﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using ModuleCustomer.View;
using ShellInfrastructure;

namespace ModuleCustomer
{
    public class CustomerModule : ModulesInfrastructure.SharedModule
    {
        protected override void RegisterViewsInRegions()
        {            
            RegionManager.RegisterViewWithRegion(RegionNames.LeftRegionName, () => UnityContainer.Resolve<ICustomerViewList>());
        }

        protected override void RegisterTypesDependencies()
        {
            UnityContainer.RegisterType<ICustomerViewList, CustomerViewList>(new ContainerControlledLifetimeManager());
        }
    }
}
